<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${hello}"></p>
<form th:action="@{/demo/test1}">
    <input th:type="text" th:name="id">
    <button>提交</button>
</form>

<table>
    <tr>
        <td>下标</td>
        <td>编号</td>
        <td>姓名</td>
        <td>地址</td>

    </tr>
    <tr th:each="user,userStates:${userList}">
        <td th:text="${userStates.index}"></td>
        <td th:text="${user.getId()}"></td>
        <td th:text="${user.getName()}"></td>
        <td th:text="${user.getAddress()}"></td>

    </tr>
</table>

<div th:each="map,mapState:${dataMap}">

    <div th:text="${map}"></div>
    key:<span th:text="${mapState.current.key}"></span><br>
    value:<span th:text="${mapState.current.value}"></span>
    ===============================
</div>

<div th:each="nm,nmState:${names}">
    <span th:text="${nmState.count}"></span>
    <span th:text="${nm}"></span>
</div>

<div>
    <div th:text="${#dates.format(now,'yyyy年MM月dd日')}"></div>
</div>

<div>
    <div th:if="${(age>1)}">绣眼鸟</div>
</div>

<div id="A" th:include="demo1::copy"></div>
</body>
</html>